home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / SHOWFILE / ST.C < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  476 b   |  38 lines

  1. /* st.c */
  2.  
  3. #include "gemdefs.h"
  4. #include "mydefs.h"
  5.  
  6. extern char sbuf[];
  7.  
  8.  
  9.  
  10. /*
  11.  * Throw up an alert box
  12.  * with the given text.
  13.  *
  14.  */
  15. err(s)
  16. char *s;
  17. {
  18.     ARROW_MOUSE;
  19.     form_alert(1, s);
  20.     BEE_MOUSE;
  21.     return ERROR;
  22. }
  23.  
  24.  
  25. /*
  26.  * Error, concatenate the three strings
  27.  * and throw up an alert box.
  28.  *
  29.  */
  30. errs(s1, s2, s3)
  31. char *s1, *s2, *s3;
  32. {
  33.     strcpy(sbuf, s1);
  34.     strcat(sbuf, s2);
  35.     strcat(sbuf, s3);
  36.     return err(sbuf);
  37. }
  38.